package pojo;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;

/**
 * 
 * @author zgy
 * 
 */
@Repository
public class ZcArea implements RowMapper<ZcArea>, Serializable {

	private Integer id;
	private String province;
	private String city;
	private String county;
	private String area;
	
	
	public ZcArea() {

	}

	public ZcArea(Integer id, String province, String city, String county,
			String area) {
		super();
		this.id = id;
		this.province = province;
		this.city = city;
		this.county = county;
		this.area = area;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCounty() {
		return county;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Override
	public ZcArea mapRow(ResultSet rs, int rowNum) throws SQLException {
		ZcArea e = new ZcArea();
		e.setId(rs.getInt("id"));
		e.setProvince(rs.getString("province"));
		e.setCity(rs.getString("city"));
		e.setCounty(rs.getString("county"));
		e.setArea(rs.getString("area"));
		return e;
	}	

}
